<?php
ini_set("display_errors" ,0);
ini_set("max_execution_time","10000");
define("_TOLERANSI_WAKTU" ,20 );
define( "DATABASE_HOST" , "localhost" ); 
define( "DATABASE_USER" , "root" );
define( "DATABASE_PASSWORD" , "123123" );
//define( "DATABASE_NAME" , "hris_demo" );
define( "DATABASE_NAME" , "db_hris_raharja" );

define( "EMAIL_HOST" , "192.168.80.80" );
define( "EMAIL_PORT" , "465" );
define( "EMAIL_USER" , "guntur" );
define( "EMAIL_PASS" , "guntur" );
define( "EMAIL_SEC" , "ssl" );
 
if($_SERVER['HTTP_HOST'] == 'ess.hr-kmh.com'){ 
	header("Location: http://{$_SERVER['HTTP_HOST']}:82");
	exit;
}
 
define("_NET_ADDR" ,"");
define("_PREFIXDOMAIN_" ,"");

/* ROOT PATH*/
define( "MY_ROOT_PATH" ,   _NET_ADDR."");

/* FILES PATH*/
define( "MY_FILES_PATH" ,   _NET_ADDR."files/upload/");
 

/* FILES PATH*/
define( "MY_COMPONENT_PATH" ,   _NET_ADDR."components/");

/* FILES PATH*/
define( "PATH_TEMPLATES" ,   _NET_ADDR."templates/");
define("__TEMPLATE_NAME__" , "hrisrskm");
/* FILES PATH*/
define( "PATH_ICON" ,  PATH_TEMPLATES.__TEMPLATE_NAME__. "/icons/");
 
/* DEFAULT AKSES */
define( "DEFAULT_WEB_URL" ,"welcome"); 
define( "CERT" ,"OUzB4TlE9PQ"); 
//define( "CERT" ,"NaTB3TVE9PQ"); 
define( "SELISIH_PEMBULATAN" ,100); 
require_once('settings/setting.php');
 
my_component_load('system');
my_component_load('loaddata');
my_component_load('permisi');
my_component_load('validate');
my_component_load('viewapi');
require_once('setting_user.php'); 
